package com.mrdeer.user.api.dto.authorization;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 14:48
 */
@Data
@ApiModel(value = "AuthorizationInfoDTO", description = "授权信息，包括角色与权限")
public class AuthorizationInfoDTO implements Serializable {
    private static final long serialVersionUID = -2503669474766716787L;

    @ApiModelProperty("授权信息，角色-权限关系，key为角色编码，value为权限集合")
    private Map<String, List<String>> rolePrivilegeMap = new HashMap<>();
}
